Re: [NTG-context] \startMPcode and \startMPpage

2020-04-16 Thread Jeong Dal
te: >> Hi, >> The following sample code is working well in the \startMPpage ~ \stopMPpage, >> but is not working in the \startMPcode ~ \stopMPcode. >> The error message is >> \textfont0 is undefined (character 63) >> l.6 \setstrut\strut $A$ >> If I remove “$

Re: [NTG-context] \startMPcode and \startMPpage

2020-04-16 Thread Hans Hagen
On 4/16/2020 8:36 PM, Jeong Dal wrote: Hi, The following sample code is working well in the \startMPpage ~ \stopMPpage, but is not working in the \startMPcode ~ \stopMPcode. The error message is \textfont0 is undefined (character 63) l.6 \setstrut\strut $A$ If I remove “$” from the code

[NTG-context] \startMPcode and \startMPpage

2020-04-16 Thread Jeong Dal
Hi, The following sample code is working well in the \startMPpage ~ \stopMPpage, but is not working in the \startMPcode ~ \stopMPcode. The error message is \textfont0 is undefined (character 63) l.6 \setstrut\strut $A$ If I remove “$” from the code, it is also working in \startMPcode

Re: [NTG-context] startMPpage..stopMPpage written to a separate PDF?

2020-04-06 Thread Wolfgang Schuster
Gerben Wierda schrieb am 05.04.2020 um 12:27: On 5 Apr 2020, at 11:34, Hans Hagen wrote: On 4/5/2020 12:29 AM, Gerben Wierda wrote: I have a series of startMPpage—stopMPpage pairs (with MP code inbetween). These now become separate pages in a single PDF. But I need them to become separate

Re: [NTG-context] startMPpage..stopMPpage written to a separate PDF?

2020-04-06 Thread Taco Hoekwater
> On 5 Apr 2020, at 12:27, Gerben Wierda wrote: > > Alternatively, I could have a step before this to turn the input XML into > many separate XMLs and have many ConTeXt runs. Probably that is the best way > to do it. Each generated XML would have all of the original XML except it > would

Re: [NTG-context] startMPpage..stopMPpage written to a separate PDF?

2020-04-05 Thread Gerben Wierda
> On 5 Apr 2020, at 11:34, Hans Hagen wrote: > > On 4/5/2020 12:29 AM, Gerben Wierda wrote: >> I have a series of startMPpage—stopMPpage pairs (with MP code inbetween). >> These now become separate pages in a single PDF. But I need them to become >> separate PDF’s

Re: [NTG-context] startMPpage..stopMPpage written to a separate PDF?

2020-04-05 Thread Hans Hagen
On 4/5/2020 12:29 AM, Gerben Wierda wrote: I have a series of startMPpage—stopMPpage pairs (with MP code inbetween). These now become separate pages in a single PDF. But I need them to become separate PDF’s each during my ConTeXt run, with a name of my own choosing. Is this possible? I guess

[NTG-context] startMPpage..stopMPpage written to a separate PDF?

2020-04-04 Thread Gerben Wierda
I have a series of startMPpage—stopMPpage pairs (with MP code inbetween). These now become separate pages in a single PDF. But I need them to become separate PDF’s each during my ConTeXt run, with a name of my own choosing. Is this possible? I guess this will be problematic, but one can hope

Re: [NTG-context] buffers inside startMPpage

2016-10-14 Thread Jan Willem Flamma
>> >> The below MWE represent my MetaFun drawings file. >> The idea is that by uncommenting the \enablemode[makepdf] I can create the >> pdf file with drawings. It seems however that startMPpage does not accept >> buffers (I also tried processbuffer and process

Re: [NTG-context] buffers inside startMPpage

2016-10-14 Thread Wolfgang Schuster
below MWE represent my MetaFun drawings file. The idea is that by uncommenting the \enablemode[makepdf] I can create the pdf file with drawings. It seems however that startMPpage does not accept buffers (I also tried processbuffer and processMPbuffer). Is it possible to somehow make this work? Y

[NTG-context] buffers inside startMPpage

2016-10-14 Thread Jan Willem Flamma
the \enablemode[makepdf] I can create the pdf file with drawings. It seems however that startMPpage does not accept buffers (I also tried processbuffer and processMPbuffer). Is it possible to somehow make this work? Thanks and regards, Jan Willem Flamma %\enablemode[makepdf] \startbuffer[fig1] draw

Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-11 Thread Johan Sandblom
=marginedge, state=stop] \starttext % Title page \startMPpage % Some metafun \stopMPpage % Some text \stoptext The resulting pdf has a smaller first page (thesis size) while the rest are A4 with the thesis pages place centrally. I would like to see the title page

Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-11 Thread Hans Hagen
=on] \setuppagenumbering [alternative=doublesided, location=marginedge, state=stop] \starttext % Title page \startMPpage % Some metafun \stopMPpage % Some text \stoptext The resulting pdf has a smaller first page (thesis size) while the rest are A4 with the thesis pages place centrally. I would like

Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-11 Thread Johan Sandblom
2006/5/11, Hans Hagen [EMAIL PROTECTED]: \definepapersize[thesis][width=169mm, height=239mm] \setuppapersize[thesis][A4] \definelayer[page][width=\paperwidth,height=\paperheight] \starttext \startTEXpage \setlayer [page] [preset=lefttop,x=3cm,y=4cm]

[NTG-context] \setuppapersize and \startMPpage

2006-05-09 Thread Johan Sandblom
Dear expertise, I have the following: \definepapersize[thesis][width=169mm, height=239mm] \setuppapersize[thesis][A4] \setuplayout [location=middle, marking=on] \setuppagenumbering [alternative=doublesided, location=marginedge, state=stop] \starttext % Title page \startMPpage % Some metafun

Re: [NTG-context] \setuppapersize and \startMPpage

2006-05-09 Thread Aditya Mahajan
] \starttext % Title page \startMPpage % Some metafun \stopMPpage % Some text \stoptext The resulting pdf has a smaller first page (thesis size) while the rest are A4 with the thesis pages place centrally. I would like to see the title page placed on an A4 sheet as well. What am I doing wrong

Re: [NTG-context] \setupMPvariables in \startMPpage

2005-12-27 Thread Hans Hagen
David Arnold wrote: All, Why doesn't this work? %output=pdf \startuseMPgraphic{usquare} draw unitsquare scaled 4cm; \stopuseMPgraphic \starttext \startMPpage \useMPgraphic{square} \stopMPpage \stoptext because you nest a graphic, kind of beginfig(1) beginfig(2) draw unitsquare

Re: [NTG-context] \setupMPvariables in \startMPpage

2005-12-27 Thread Hans Hagen
David Arnold wrote: Why doesn't this work? %output=pdf \startuseMPgraphic{usquare} draw unitsquare scaled \MPvar{u}; \stopuseMPgraphic \starttext \startMPpage \setupMPvariables[usquare][u=4cm] \includeMPgraphic{usquare} \stopMPpage \stoptext because (1) after startMPpage metapost code

Re: [NTG-context] \startMPpage ... \stopMPpage

2005-12-27 Thread Hans Hagen
David Arnold wrote: % \startMPpage % \includeMPgraphic{EnglishRule} % \stopMPpage you can only include a simple usable graphic, defined with \startuseMPgraphic; unique mp graphics are more tricky and involve (once we have lua in tex we can find ways around this since then we can (1

[NTG-context] \setupMPvariables in \startMPpage

2005-12-26 Thread David Arnold
All, Why doesn't this work? %output=pdf \startuseMPgraphic{usquare} draw unitsquare scaled 4cm; \stopuseMPgraphic \starttext \startMPpage \useMPgraphic{square} \stopMPpage \stoptext Why doesn't this work? %output=pdf \startuseMPgraphic{usquare} draw unitsquare scaled \MPvar{u

Re: [NTG-context] \setupMPvariables in \startMPpage

2005-12-26 Thread Willi Egger
Hi David, without digging into depth, it works if you change MPpage into TEXpage Willi David Arnold wrote: All, Why doesn't this work? %output=pdf \startuseMPgraphic{usquare} draw unitsquare scaled 4cm; \stopuseMPgraphic \starttext \startMPpage \useMPgraphic{square} \stopMPpage

[NTG-context] \startMPpage ... \stopMPpage

2005-12-26 Thread David Arnold
Hans, Taco, et al, There's a quote in metafun-s.pdf (page 539) that says You can embed the graphic in a \startMPpage construct and process it with TEXEXEC. In that case you have the full MetaFun functionality available. Before processing the file, TEXEXEC will do a couple of checks